//倒计时封装
function CountDown(time=60,callback) {
	console.log(time)
	this.time = time
	var that = this;
	this.zhixin = function(){
		var time = that.time
		if(time>0){
			time--;
			that.time = time
			if(callback){
				callback(time);
			}
			setTimeout(that.zhixin,1000);
		}
		return
	}
	this.zhixin();	
}
module.exports = {
	CountDown:CountDown
}